﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="IpBlackList.aspx.cs" Inherits="WinnerCMS.WebUI.Admin.ControlPanel.IpBlackList" %>

<%@ Register Assembly="WinnerCMS.WebControls" Namespace="WinnerCMS.WebControls" TagPrefix="TW" %>
<%@ Register Src="../UC_AjaxLoading.ascx" TagName="UC_AjaxLoading" TagPrefix="uc1" %>
<!doctype html>
<html>
<head runat="server">
    <title>IP屏蔽管理</title>
    <meta charset="utf-8">
    <meta content="no-cache" http-equiv="Pragma" />
    <%: Scripts.Render("~/Scripts/AdminBase") %>
    

    <%: Styles.Render("~/Content/Bootstrap/css") %>

    

    <style type="text/css">
        .RowTitle
        {
            width: 200px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <table id="NavigationPath" border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td width="50%">
                 <asp:Label ID="lblPath" runat="server"></asp:Label>
            </td>
            <td width="50%">
            </td>
        </tr>
    </table>

    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <uc1:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server" />
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table>
                <tr>
                    <td>
                        <asp:RadioButtonList ID="RBL_Select" runat="server">
                            <asp:ListItem Value="1">选择</asp:ListItem>
                            <asp:ListItem Value="2">选择</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                    <td>
                        　IP：<asp:TextBox ID="txtIP" runat="server"></asp:TextBox>
                        
                        &nbsp;<br />
                        IP段：<asp:TextBox ID="txtIP0" runat="server"></asp:TextBox>
                        －－<asp:TextBox ID="txtIP1" runat="server"></asp:TextBox>
                    </td>
                    
                    <td>例如：192.168.1.111或者192.168.1.*<br/>例如：192.168.1.1－－192.168.4.255</td>
                </tr>
            
            </table><asp:Button ID="btnAddBL" runat="server" Text="添加" Cssclass="btn btn-default" OnClick="btnAddBL_Click" />
        
            <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" DataKeyNames="ID"
                OnRowCancelingEdit="GV_List_RowCancelingEdit" OnRowDeleting="GV_List_RowDeleting"
                OnRowUpdating="GV_List_RowUpdating" OnRowEditing="GV_List_RowEditing" GridLines="None" CssClass="table table-bordered table-condensed table-hover">
                <Columns>
                    <asp:BoundField HeaderText="起始ＩＰ" DataField="IPStart" />
                    <asp:BoundField HeaderText="结束ＩＰ" DataField="IPEnd" />
                    <asp:BoundField DataField="updatetime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}"
                        HeaderText="更新" ReadOnly="True">
                        <HeaderStyle Width="106px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:CommandField ShowEditButton="True">
                        <HeaderStyle HorizontalAlign="Center" Width="60px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:CommandField>
                    <asp:TemplateField ShowHeader="False">
                        <ItemTemplate>
                            <asp:LinkButton ID="lblDelete" runat="server" CausesValidation="False" 
                                CommandName="Delete" OnClientClick="return confirm('您确定要删除？');" Text="删除"></asp:LinkButton>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" Width="60px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle CssClass="HeaderStyle" />
            </asp:GridView>
            <TW:PageNavigation ID="PageNavigation1" runat="server" SubmitButtonclass="btn btn-default" Width="100%"
                AlwaysShow="True" OnPageChanging="PageNavigation1_PageChanging">
            </TW:PageNavigation>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
